Closed Bug 1963059 Opened 1 month ago Closed 1 month ago

Navigation API: Correctly find the associated global's document

Categories

(Core :: DOM: Navigation, task)

task

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: jjaschke, Assigned: farre)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently, the code uses EventTarget::GetDocumentIfCurrent() whenever the spec says

Let document be this's relevant global object's associated Document.

The right way to do this should be

Document* doc = GetOwnerGlobal()->GetAsInnerWindow()->GetDoc();
Assignee: nobody → afarre
Status: NEW → ASSIGNED
Pushed by jjaschke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/794b65b2c774 Add helpers to get associated document. r=jjaschke
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
QA Whiteboard: [qa-triage-done-c141/b140]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: